package champPackage;

import java.sql.Date;
import java.util.Iterator;

public class Player {
	
	/**
	 *  name and a second name of the player are passed as a one string
	 * to a construqtor, date of birth is the second parametr
	 * @param saxeliGvari
	 * @param dabadebisTarigi
	 */
	public Player(String saxeliGvari, Date dabadebisTarigi, int playerId){
		nameSurname = saxeliGvari;
		birthDate = dabadebisTarigi;
		id = playerId;
	}
	
	/**
	 * name of the player
	 * @return
	 */
	public String getName(){
		return nameSurname;
	}
	
	/**
	 * id of the player in a dataBase
	 * @return
	 */
	public int getId(){
		return id;
	}
	/**
	 * return date of birth of the player
	 * (may not be realised)
	 * @return
	 */
	public Date getDateOfBirth(){
		return birthDate;
	}
//	public void setTeam(Team t, Championship ch);//es sachiro araa mgoni, teamshi xom aris addPlayer
	
	/**
	 * returns iterator of the teams where the player has played
	 * @return
	 */
	
	// realizacias ar vuketebt, yovel shemtxvevashi jer. gaurkvevelia saertod gvchirdeba tu ara da tan
	// cudi stilia amis gamoyeneba.
	public Iterator<Team> getTeams(){
		
		return null;
	}
	/**
	 * (may not be implemented)
	 * adds image location for the player to the dataBase
	 * @param imageFile
	 */
	public void setImage(String imageFile){
		imgFileName = imageFile;
	}
	
	/**
	 * returns image location of the player
	 * @return
	 */
	public String getImage(){
		return imgFileName;
	}
	
	private String nameSurname, imgFileName;
	
	private Date birthDate;
	
	private int id;
	
}
